package com.wxcms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wxcms.domain.Org;
import com.wxcms.mapper.OrgDao;
import com.wxcms.service.OrgService;


@Service
public class OrgServiceImpl implements OrgService{

	@Autowired
	private OrgDao entityDao;

	public Org getById(String id){
		return entityDao.getById(id);
	}
	
	public Org getByOrg(String Org){
		return entityDao.getByOrg(Org);
	}

	public List<Org> listForPage(Org searchEntity){
		return entityDao.listForPage(searchEntity);
	}

	public void add(Org entity){
		entityDao.add(entity);
	}

	public void update(Org entity){
		entityDao.update(entity);
	}

	public void delete(Org entity){
		entityDao.delete(entity);
	}

}